package code.untils 
{
	import flash.system.Security;

	/**
	 * 游戏常用常量
	 * @author CYang
	 */
	public class GameConst 
	{
		/**
		 * 游戏宽度
		 */
		public static const GAME_WIDTH:int = 850;
		/**
		 * 游戏高度
		 */
		public static const GAME_HEIGHT:int = 650;
		
		/**
		 * 格子大小
		 */
		public static const TILE_SIZE:int = 40;
		
		/**
		 *能量倒计时  （s）
		 */
		public static var ENERGY_COUNT_DOWM_TIME:int = 600;
		
		/**
		 * 游戏GM账号
		 */
		public static var GAME_MANAGER_ID:String = "100004993236005";
		/**
		 * 人物颜色值
		 */
		public static const COLOR_DATA_ONE:uint = 0xFFD5B3;
		public static const COLOR_DATA_TWO:uint = 0xE4B784;
		public static const COLOR_DATA_THREE:uint = 0x845E39;
		public static const COLOR_DATA_FOUR:uint = 0xFFECCD;
		/** 成功率为30%时，加成功率的花费 */
		public static var UPDATE_RECIPE_SUCCESS_RATE_COST_CASH_WITH_30:int = 12;
		/** 成功率为50%时，加成功率的花费 */
		public static var UPDATE_RECIPE_SUCCESS_RATE_COST_CASH_WITH_50:int = 8;
		/** 研发扩充格子依次花费的cash */
		public static var EXPEND_BAG_SIZE_COST_CASH:Array = [10,20,30,40];
//		/** 研发点NPC抽碎片，依次花费coin  */
//		public static var LOTTERY_ITEM_COST_COIN:Array = [50,100,200,300,500];
		/**
		 * 上午体力奖励活动开始时间
		 */
		public static var AM_START_DATE:int = 12;
		/**
		 * 上午体力奖励活动结束时间
		 */
		public static var AM_END_DATE:int = 13;
		/**
		 * 下午体力奖励活动开始时间
		 */
		public static var PM_STAR_DATE:int = 18;
		/**
		 * 下午体力奖励活动结束时间
		 */
		public static var PM_END_DATE:int = 19;
		/**
		 * 活动奖励能量值
		 */
		public static var AWARD_ENERGY:int = 15;
		/**
		 *能量值上限 
		 */		
		public static var MAX_ENERGY:int = 36;
		/**
		 *金币上限 
		 */		
		public static var MAX_COIN:int = 999999;
		/**
		 *好友访问最大能量 
		 */		
		public static var FRIENDS_VISIT_MAX_ENERGY:int = 5;
		/**
		 *出售物品超过5000金币时要弹窗询问用户 
		 */		
		public static var SELL_ITEM_COIN_MAX:int = 5000;
		/**************************************************************************************************************
		 *多包与后台的正常倒计时间隔交互时间 
		 */
		public static var NET_INTERVAL_TIME:Number = 1000;
		/**
		 *多包与后台的正常倒计时间次数 
		 */
		public static var NET_SEND_INTERVAL_COUNT:int = 5;
		/**
		 * 多包与后台的交互延长再发送时间 
		 */
		public static var NET_DELAY_INTERVAL_TIME:Number = 5000;
		/**
		 *延迟发送次数 
		 */
		public static const NET_DELAY_COUNT:Number = 5;
		/**
		 *首次充值礼包ID 
		 */		
		public static const FIRST_RECHARGE_GIFT_ID:int = 59001;
		/**
		 *首次充值礼包价格
		 */		
		public static const FIRST_RECHARGE_GIFT_PRICE:int = 20;
		/**
		 *成功率为30%时，复活粉星甜品的cash花费 
		 */		
		public static const REVIVE_PINK_STAR_DESSERT_COST_WITH_30:int = 15;
		/**
		 *成功率为50%时，复活粉星甜品的cash花费 
		 */		
		public static const REVIVE_PINK_STAR_DESSERT_COST_WITH_50:int = 10;
		/**
		 *10元大礼包ID 
		 */		
		public static const SUPER_GIFT_10_ID:int = 59008;
		/**
		 *总积分的Id 
		 */		
		public static const TOTAL_SCORE_ID:int = 73001;
		/**
		 *10级礼包Id 15天前
		 */		
		public static const GIFT_LEVEL_10_ID_BEFORE_15_DAYS:int = 59126;
		/**
		 *10级礼包Id 15天后
		 */		
		public static const GIFT_LEVEL_10_ID_AFTER_15_DAYS:int = 59127;
		/**
		 *10级礼包开启等级 
		 */		
		public static const GIFT_LEVEL_10:int = 10;
		
		/**************************************************十万美金*****************************************/
//		/**
//		 *特殊任务Id，有此Id的任务放置最前面 
//		 */		
//		public static const TASK_ID_1:String = '200111-01';
//		/**
//		 *特殊任务Id，有此Id的任务放置最前面 
//		 */		
//		public static const TASK_ID_2:String = '200110-02';
//		/**
//		 *特殊任务Id，有此Id的任务放置最前面 
//		 */		
//		public static const TASK_ID_3:String = '200112-01';
		/**
		 *特殊任务Id，有此Id的任务放置最前面 (新手引导)
		 */		
		public static const TASK_ID_4:String = '100110-01';
		
		public static const LINK_LIST:Array = ["loadingscreen","welcomescreen","questscreen","questicon","rewardsscreen","congratsscreen"];
		/**
		 *十万美金连接 
		 */
		public static const HUNDRED_LINK:String = "https://trackers.tbliab.net/apptrak?eses=AAAA&euui=001133&eact=impression&eval=true&efbi=null&ehos=Shinezone_DessertShop_Web&mbzn=BBBB&" +
			"mbcn=GMI_Pillsbury%20Holiday%20SWEET%20ROLLS_Q4%202013+&mbai=IO2167&ecmd3=Web&ecmd4=Fusion&mbpp=Shinezone_DessertShop_Web&format=json";
		/******************************************游戏常量配置***********************************************************************/
		/**
		 * 最大等级
		 */
		public static var MAX_LEVEL:int = 60;
		/**
		 * 枯萎时间(耕地s)
		 */
		public static var WITHERED_TIME_PLANT:int = 172800;
		
		/**
		 * 枯萎时间(烹饪s)
		 */
		public static var   WITHERED_TIME_COOKING:int = 172800;
		/**
		 *是否通过工具打印信息 
		 */
		public static var isTraceLogByTool:Boolean;
		/**
		 *排行榜本次比赛的食材包Id数组 
		 */		
		public static const RANK_MATERIAL_BAG_IDS:Array = [59009,59010,59011];
		/**
		 *cash不足时，弹出的NoEnoughCashAlert.as弹窗上显示的三种cash购买
		 */		
		public static const NO_ENOUGH_CASH_PAY_ORDER_IDS:Array = [3,2,1];//[5,4,3];
		
		/**
		 *是否是本地 (非  网页中或者air中)
		 * @return 
		 * 
		 */
		public static function get isLocal():Boolean{
			return !(Security.sandboxType == Security.REMOTE || Security.sandboxType == Security.APPLICATION);
			
		}
		/******************************************特殊建筑ID***********************************************************************/
		/**
		 * 个人能力小屋 
		 */		
		public static var ABILITY_HOUSE:int = 65001;
		/**
		 * 研发小屋 
		 */		
		public static var REASEARCH_HOUSE:int = 62001;
		/**
		 *拉霸价格 
		 */		
		public static var SLOTS_MONEY:int = 10;
		
		
		/**
		 * 赠送宠物等级
		 */		
		public static var GIVE_PET_LEVEL:int = 11;
		/**
		 *十一级送宠物ID 
		 */		
		public static var ELEVEN_PET:int = 81001;
		/**
		 * 换装等级限制
		 */		
		public static const DRESS_LEVEL:int = 4;
		/**
		 *生成MD5的key 
		 */		
		public static const MD5_KEY:String = "dessert140317";
		/**
		 *裂变免费礼包的Id 
		 */		
		public static const FISSION_FREE_GIFT_ID:int = 59077;
	}
}